package com.dayou.bean;

import com.dayou.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 达幽系统集成框架 - 部门表 dayou_sys_dept
 * 
 * @author dayou
 * @date 2020-04-24
 */
public class SysDept extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 主键id */
	private Integer id;
	/** 部门名称 */
	private String name;
	/** 父级部门id */
	private Integer pid;
	/** 菜单权限 */
	private String menus;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setPid(Integer pid) 
	{
		this.pid = pid;
	}

	public Integer getPid() 
	{
		return pid;
	}
	public void setMenus(String menus) 
	{
		this.menus = menus;
	}

	public String getMenus() 
	{
		return menus;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("pid", getPid())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .append("menus", getMenus())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .toString();
    }
}
